package com.feelingj.spring.boot.blog.service;

import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feelingj.spring.boot.blog.domain.Authority;
import com.feelingj.spring.boot.blog.repository.AuthorityRepository;

/**
 * 
 * @ClassName:AuthorityServiceImpl
 * @Description:TODO
 * @author feelj
 * @date 2018年3月29日上午10:14:00
 */
@Service
public class AuthorityServiceImpl  implements AuthorityService {
	
	@Autowired
	private AuthorityRepository authorityRepository;

	@Override
	public Optional<Authority> getAuthorityById(Long id) {
		return authorityRepository.findById(id);
	}

}
